package org.biz.modules.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author zf
 * @ClassName SysDocUser
 * @date 2024/8/2 10:48
 */
@Data
@TableName("sys_doc_user")
public class SysDocUser {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /** 填报人id**/
    @ApiModelProperty(value = "填报人id")
    @TableField("user_id")
    private String userId;

    /** 填报项id**/
    @ApiModelProperty(value = "填报项id")
    @TableField("title_id")
    private String titleId;

    /** 第几条填空**/
    @ApiModelProperty(value = "第几条填空")
    @TableField("text_index")
    private int textIndex;

    /** 填报值1**/
    @ApiModelProperty(value = "填报值1")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String value1;

    /** 填报值2**/
    @ApiModelProperty(value = "填报值2")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String value2;

    /** 佐证材料**/
    @ApiModelProperty(value = "佐证材料")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String file;

    /** 创建时间**/
    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /** 更新时间**/
    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /** 填报内容 **/
    @ApiModelProperty(value = "填报内容")
    @TableField(exist = false)
    private String text;

    /** 填报佐证材料描述 **/
    @ApiModelProperty(value = "填报佐证材料描述")
    @TableField(exist = false)
    private String text2;
    /**填报项 **/
    @ApiModelProperty(value = "填报项")
    @TableField(exist = false)
    private String title;

    /** 完成标识（0-未完成，1-完成） **/
    @ApiModelProperty(value = "完成标识（0-未完成，1-完成）")
    @TableField(exist = false)
    private int finishNum;

    /** 是否完成 **/
    @ApiModelProperty(value = "是否完成")
    @TableField(exist = false)
    private boolean finish;


}
